/******************* (C) COPYRIGHT 2022 CHU WEI TENG ***********************************************
**
**------------------ File Info ---------------------------------------------------------------------
** File name:      example_info_page.h
** modified Date:  2022-05-10
** Last Version:   V1.0
** Descriptions: 
** 
**------------------ Modfication  log --------------------------------------------------------------
** Date       Who            Rev        Comments
----------------------------------------------------------------------------------------------------
   22/05/10  chuwt@qq.com    V1.00      created

****************************************************************************************************/
#ifndef __EXAMPLE_INFO_PAGE_H__
#define __EXAMPLE_INFO_PAGE_H__

#include "dwin.h"

/* Public define-----------------------------------------------------------------------------------*/

#define  EXAMPLE_INFO_ADDR            		0x1010 
#define  EXAMPLE_INFO_ATTR            		0xFFFF
#define  EXAMPLE_INFO_PAGE_ID					0

/* Public typedef----------------------------------------------------------------------------------*/
typedef struct 
{
    dwin_page_t     parent;
	dwin_widget_t*  next;
    dwin_widget_t*  prev;
    dwin_widget_t*  number;
    uint16_t        page_number;
	uint16_t		page_number_max;
}example_info_page_t;

/* Public function---------------------------------------------------------------------------------*/

dwin_widget_t* example_info_page_create(dwin_widget_t* parent, uint16_t addr, uint16_t attr, uint16_t size);

#endif
